package student.category.dao;

import java.sql.SQLException;
import java.util.List;

import org.springframework.orm.ibatis.SqlMapClientTemplate;

public class CategoryDAO {

	private SqlMapClientTemplate client;
	
	public CategoryDAO(SqlMapClientTemplate client) {
		this.client = client;
	}
	
	public List selectMajorCategory(String groupId) throws SQLException {
		return client.queryForList("subject.selectMajorCategory", groupId);
	}
	
	public List selectGroupCategory() throws SQLException {
		return client.queryForList("subject.selectGroupCategory");
	}
}
